//
//  BaseNavigationViewController.m
//  Project
//
//  Created by 本游网络 on 2017/12/19.
//  Copyright © 2017年 本游网络. All rights reserved.
//

#import "BaseNavigationViewController.h"
#import "UIColor+Extension.h"

@interface BaseNavigationViewController ()

@end

@implementation BaseNavigationViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    // 设置Navigation Bar的UI
    [[UINavigationBar appearance] setTranslucent:NO];
    [[UINavigationBar appearance] setBarTintColor: [UIColor colorWithHexString:@"ffffff"]]; // 背景色
    [[UINavigationBar appearance] setTitleTextAttributes: @{NSForegroundColorAttributeName: [UIColor colorWithHexString:@"ffffff"]}]; // 标题颜色
    [[UINavigationBar appearance] setTintColor: [UIColor colorWithHexString:@"ffffff"]]; // 按钮颜色
    if (@available(iOS 11.0, *)) {
                [[UINavigationBar appearance] setLargeTitleTextAttributes: @{NSFontAttributeName: [UIFont systemFontOfSize:20]}];
    }
    // 重新设置侧滑手势的代理
    __weak typeof(self) weakSelf = self;
    if ([self respondsToSelector:@selector(interactivePopGestureRecognizer)]) {
        self.interactivePopGestureRecognizer.delegate = (id)weakSelf;
    }
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}

@end
